import BaseCURDV2Api from '@/framework/infra/base/BaseCURDV2Api'

class ActivityApi extends BaseCURDV2Api {
  constructor() {
    super('mj/activity')
  }
  list(params) {
    const getParams = {...params}
    Object.keys(getParams).forEach(key => {
      if (Array.isArray(getParams[key])) {
        getParams[key] = getParams[key].join(',')
      }
    })
    return this.post('list-page', getParams)
  }
}

export const activityApi = new ActivityApi()
